import Home from './components/Home.vue'
import Category from './components/Category.vue'
import Cart from './components/Cart.vue'
import GoodsDetail from './components/GoodsDetail.vue'
import SearchPage from './components/SearchPage.vue'
import Mine from './components/Mine.vue'
import Login from './components/Login.vue'
import Reg from './components/Reg.vue'
import Collect from './components/Collect.vue'
import FootPrint from './components/FootPrint.vue'
import Address from './components/Address.vue'
import AddressAdd from './components/AddressAdd.vue'
import MechanismAll from './components/MechanismAll.vue'
import Order from './components/Order.vue'
import OrderDetail from './components/OrderDetail.vue'
import wxpay from './components/alipay/wxPay.vue'
import PayMain from './components/PayMain.vue'
import cartpay from './components/cartPay.vue'
import success from './components/pay_success.vue'

export default [{
    path: '/home',
    component: Home
}, {
    path: '/catgory',
    component: Category
},{
	path: '/pay',
	component: PayMain
},{
	path: '/pay/:id',
	component: PayMain
},{
    path: '/cart',
    component: Cart
}, {
    path: '/collect',
    component: Collect
}, {
    path: '/footPrint',
    component:FootPrint
}, {
    path: '/address/:type',
    component: Address
},{
    path: '/addressAdd',
    component: AddressAdd
},{
    path: '/addressAdd/:id',
    component: AddressAdd
},
{
    path: '/search',
    component: SearchPage
}, {
    path: '/mine',
    component: Mine
}, {
    path: '/login',
    component: Login
}, {
    path: '/register',
    component: Reg
}, {
    path: '/catgory/:id',
    component: Category
}, {
    path: '/detail/:id',
    component: GoodsDetail
}, {
    path: '/',
    redirect: '/home'
}, {
    path: '*',
    redirect: '/home'
}, {
    path: '/mechanism',
    component: MechanismAll
}, {
    path: '/order/:status',
    component: Order
}, {
    path: '/orderDetail',
    name: 'OrderDetail',
    component: OrderDetail
},{
    path: '/wxpay',
    component: wxpay
},{
    path: '/cartpay',
    component: cartpay
},{
    path: '/success',
    component:  success
}]
